home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_sea_hints.cog < prev    next >
Text File  |  1999-11-15  |  3KB  |  211 lines

  1. # Jones 3D Cog Script
  2. #
  3. # sea_hints.cog
  4. #
  5. # level hints    
  6. #
  7. # [DS]
  8. #
  9. # (C) 1999 LucasArts Entertainment Co. All Rights Reserved
  10. # ========================================================================================
  11.  
  12. symbols
  13.     
  14.     message        startup
  15.     message        entered
  16.     message        activated
  17.     message        taken
  18.     message        removed
  19.     message        crossed
  20.     message        user0            # pump cog
  21.     message        user1            # weapon cog
  22.     message        user2            # crane cog
  23.     message        user3            # ladder cog
  24.     message        user4            # launch cog
  25.         
  26.     thing            player        local
  27.     thing            hint1
  28.     thing            hint2
  29.     thing            hint3
  30.     thing            hint4
  31.     thing            hint5
  32.     thing            hint6
  33.     thing            hint7
  34.     thing            hint8
  35.     thing            hint9
  36.     thing            hint10
  37.     thing            hint11
  38.     thing            hint12
  39.     thing            hint13
  40.     thing            hint14
  41.     thing            hint15
  42.     thing            hint16
  43.     thing            hint17
  44.  
  45.     thing        brigdoor
  46.     thing        lock
  47.     thing        mp1
  48. #    thing        mp2            created:doh!
  49.     thing        mp3
  50.     thing        crankwheel
  51.     int        escaped=0                    local
  52.     sector    brighall
  53.     sector    vent
  54.     surface    hold1upper
  55.     surface    hold2upper
  56.     surface    hold2upper2
  57.     surface    hole_1
  58.     surface    hole_2
  59.  
  60. end
  61.  
  62. # ========================================================================================
  63.  
  64. code
  65.  
  66. startup:
  67.     player = GetLocalPlayerThing();
  68.     return;
  69.  
  70.  
  71. activated:
  72.     if(getsenderref() == brigdoor)
  73.     {
  74.     if(escaped == 1) return;
  75.     SetHintSolved(hint1);
  76.     SetHintUnsolved(hint2);
  77.     }
  78.     return;
  79.  
  80. removed:
  81.     if(getsenderref() == lock)
  82.     {
  83.     SetHintSolved(hint2);
  84.     }
  85.     return;
  86.  
  87. crossed:
  88.     if(getsenderref() == hole_1)
  89.     {
  90.     SetHintSolved(hint9);
  91.     return;
  92.     }
  93.     if(getsenderref() == hole_2)
  94.     {
  95.     SetHintSolved(hint10);
  96.     }
  97.     return;
  98.  
  99.  
  100. entered:
  101.     if(getsenderref() == vent)
  102.     {
  103.     SetHintSolved(hint2);
  104.     }
  105.     if(getsenderref() == brighall)
  106.     {
  107.     escaped=1;
  108.     SetHintSolved(hint1);
  109.     SetHintSolved(hint2);
  110.     SetHintSolved(hint3);
  111.     }
  112.     if(getsenderref() == hold1upper)
  113.     {
  114.     SetHintSolved(hint7);
  115.     }
  116.     if((getsenderref() == hold2upper) || (getsenderref() == hold2upper2))
  117.     {
  118.     SetHintSolved(hint14);
  119.     }
  120.     return;                           
  121.  
  122. taken:
  123.     if(getsenderref() == mp1)
  124.     {
  125.     SetHintSolved(hint8);
  126.     }
  127.     if(getsenderref() == mp3)
  128.     {
  129.     SetHintSolved(hint11);
  130.     }
  131.     if(getsenderref() == crankwheel)
  132.     {
  133.     SetHintSolved(hint16);
  134.     }
  135.     return;
  136.  
  137. user0:                        #leverpump cog
  138.     if(getparam(1) == 1)            #imp#2 picked up
  139.     {
  140.     SetHintSolved(hint4);
  141.     SetHintSolved(hint5);
  142.     return;
  143.     }
  144.     if(getparam(0) == 1)            #pump on
  145.     {
  146.     SetHintSolved(hint4);
  147.     return;
  148.     }
  149.     if(getparam(0) == 2)            #pump off back in cell
  150.     {
  151.     escaped=0;
  152.     SetHintUnsolved(hint1);
  153.     SetHintUnsolved(hint2);
  154.     SetHintUnsolved(hint3);
  155.     SetHintUnsolved(hint4);
  156.     return;
  157.     }
  158.     if(getparam(0) == 0)            #pump off
  159.     {
  160.     SetHintUnsolved(hint4);
  161.     }
  162.     return;
  163.  
  164. user1:                        #weapons cog
  165.     if(getparam(0) == 1)            #weapons picked up
  166.     {
  167.     SetHintSolved(hint6);
  168.     return;
  169.     }
  170.     if(getparam(0) == 2)            #weapons picked up
  171.     {
  172.     SetHintUnsolved(hint3);
  173.     SetHintUnsolved(hint4);
  174.     SetHintUnsolved(hint5);
  175.     return;
  176.     }
  177.     return;
  178.  
  179. user2:
  180.     if(getparam(0) == 1)            #crate attach.
  181.     {
  182.     SetHintSolved(hint12);
  183.     }
  184.     if(getparam(0) == 2)            #jewel lifted.
  185.     {
  186.     SetHintSolved(hint13);
  187.     }
  188.     return;
  189.  
  190. user3:
  191.     if(getparam(0) == 1)            #ladder down.
  192.     {
  193.     SetHintSolved(hint15);
  194.     return;
  195.     }
  196.     else
  197.     {
  198.     SetHintUnsolved(hint15);
  199.     }
  200.     return;
  201.  
  202. user4:
  203.     if(getparam(0) == 1)            #Thats All Folks.
  204.     {
  205.     SetHintSolved(hint17);
  206.     }
  207.     return;
  208.  
  209. end
  210.  
  211.